package com.rem.mp.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

import java.util.List;

/**
 * @Author Rem
 * @Date 2020-03-01
 */

public class MyInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList() {
        //获得父类所有基础的baseMapper方法
        List<AbstractMethod> methodList = super.getMethodList();
        //添加自定义方法
        methodList.add(new FindAll());

        return methodList;
    }
}
